package com.yami.shop.personnft.common.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 个人持仓
 *
 * @author FrozenWatermelon
 * @date 2020-10-28 15:27:24
 */
@Schema(description = "持仓")
@Data
@TableName("tz_person_nft")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PersonNft implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    private String denomId;

    private String tokenId;

    private Integer status;

    private String remark;

    private String userId;

    private String dawProductCode;

    private Long productId;

    private Boolean selectTransfer;

    private String selectTransferMsg;
    private String dawHash;
    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    protected Date createTime;

    /**
     * 更新时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    protected Date updateTime;
    private String dawName;
    //	@JsonSerialize(using = ImgJsonSerializer.class)
    private String shortUrl;

    private String channelCode;

    private String chainCode;


    private List<String> tokenIds;

    private Long day;// 划转t+n

    private Integer sceneType;
    private String sceneTypeName;
    private List<Long> prodIds;
    @TableField(exist = false)
    private List<Long> notSceneType;

    private String orderBy;//1 倒序 0 正序

    private String yearStr;
    private String monthDayStr;
    // 证书类 源文件URL
    private String sourceUrl;
    // 是否可以发红包
    private Long isRed;
    private Long shopId;
    private Long dawNameId;

    private String productName;
}
